class NanoUrl < ActiveRecord::Base
  validates_presence_of :url_link, :message => "URL can't be blank"
  validates_format_of :url_link, :with => %r{^https?://}i, 
    :message => 'URL format invalid, must start with http:// or https://'
  validates_length_of :url_link, :within => 7..500, :message => "URL length must between 7 and 500"
end
